all: run report

run: problem
	./problem

problem: Problem.cpp
	g++ Problem.cpp -o problem

report: report.pdf

report.pdf: report.tex
	xelatex report.tex 

clean:  
	rm -f report.pdf *.fdb_latexmk *.fls *.log *.aux problem report.synctex.gz
  
.PHONY: all clean run
